//
//  Kylin_DiscoverTableViewController.m
//  01-LotteryBaseFrame
//
//  Created by Kylin on 16/1/4.
//  Copyright © 2016年 kylin. All rights reserved.
//

#import "Kylin_DiscoverTableViewController.h"

@interface Kylin_DiscoverTableViewController ()

@end

@implementation Kylin_DiscoverTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
 
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    
    // 很耗性能最好不用
    [self.tableView reloadData];
    
}

// cell 将要显示的时候调用
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
    // 平移cell
    cell.transform = CGAffineTransformMakeTranslation(self.view.width, 0);
    
    [UIView animateWithDuration:0.25f animations:^{
        // 还原
        cell.transform = CGAffineTransformIdentity;
    }];
}
@end
